﻿#pragma execution_character_set("utf-8")
#include "selectwidget.h"
#include "ui_selectwidget.h"
#include "database.h"
#include <QPainter>

SelectWidget::SelectWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SelectWidget)
{
    ui->setupUi(this);
}

SelectWidget::~SelectWidget()
{
    delete ui;
}

void SelectWidget::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    QImage t_image;
    //    t_image.load(":/image/bg.png");
    //    t_image = t_image.scaled(this->width(),this->height());
    //    painter.drawPixmap(0,0,this->width(),this->height(),QPixmap::fromImage(t_image));

}

void SelectWidget::on_pushButton_a_clicked()
{
    emit sendDisWidget("m_WarehousingWidget");
}

void SelectWidget::on_pushButton_b_clicked()
{
    emit sendDisWidget("m_DeliveryWidget");
}

void SelectWidget::on_pushButton_c_clicked()
{
    emit sendDisWidget("m_RecordWidget");
}

void SelectWidget::on_pushButton_d_clicked()
{
    emit sendDisWidget("m_StatisticsWidget");
}

void SelectWidget::on_pushButton_exit_clicked()
{
    emit sendDisWidget("m_LoginWidget");
}


void SelectWidget::on_pushButton_f_clicked()
{
    emit sendDisWidget("m_AnalysisWidget");
}
